Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport v4.0-branch] soc: sam0: samd5x: xosc32 configurable startup time #83103

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Dec 17, 2024

Backport cd20154 from #82951.

Fixes #83147

Adds Kconfig option to configure the startup time of the external
32KHz crystal oscillator.

Signed-off-by: Thomas Schranz <[email protected]>
(cherry picked from commit cd20154)
@zephyrbot zephyrbot requested a review from nandojve as a code owner December 17, 2024 11:38
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) labels Dec 17, 2024
@nandojve nandojve linked an issue Dec 18, 2024 that may be closed by this pull request
@henrikbrixandersen
Copy link
Member

#83147 is an enhancement. We usually only backport bug fixes. What's the rationale for backporting this?

@nandojve
Copy link
Member

nandojve commented Dec 22, 2024

#83147 is an enhancement. We usually only backport bug fixes. What's the rationale for backporting this?

The xosc32 is used as source of PLL to provide cpu main clock and users should be able to configure the right start-up time to avoid boot issues. I can create an special issue if required.

see

/* set DPLL clock source to 32kHz GCLK1 */
GCLK->PCHCTRL[OSCCTRL_GCLK_ID_FDPLL0 + n].reg = GCLK_PCHCTRL_GEN(1) | GCLK_PCHCTRL_CHEN;

@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 27, 2024
@dkalowsk
Copy link
Contributor

I'm on the same page with @henrikbrixandersen here, this has a look and smell of an enhancement. The provided issue didn't give me any details why this is a bug.

@dkalowsk dkalowsk merged commit 72a1c80 into v4.0-branch Jan 16, 2025
28 of 29 checks passed
@dkalowsk dkalowsk deleted the backport-82951-to-v4.0-branch branch January 16, 2025 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Backport PR and backport failure issues platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

soc: samd5x: xosc32: Correct oscillator start up time to not used reserved value
6 participants